import axios from './axios'

export function getAccount(params={}){
    return axios({
        url:'/current-account/get',
        params
    })
}

export function getCollectAccount(){
    return axios({
        url:'/current-account/getList'
    })
}

export function addAccount(params){
    return axios({
        method: 'post',
        url:'/current-account/insert',
        params
    })
}

export function delAccount(params){
    return axios({
        method: 'delete',
        url:'/current-account/delete',
        params
    })
}

export function updateAccount(params){
    return axios({
        method: 'put',
        url:'/current-account/update',
        params
    })
}

export function listImage(){
    return axios({
        url:'/current-account-image/listImage'
    })
}